package org.chris.utils;

import org.chris.ui.activities.AquarianMain;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class ProxyChangeReceiver extends BroadcastReceiver {
	@Override
	public void onReceive(Context context, Intent intent) {
		Log.d("ProxyChangeReceiver",
				"Proxy change receiver called: " + intent.toString());

		if (AquarianMain.INSTANCE != null) {
			Log.d("ProxyChangeReceiver", "Refresh system preferences");
			AquarianMain.INSTANCE.applyPreferences();
		}
	}
}
